package wli.app.util;

import static org.junit.Assert.*;
import junit.framework.Assert;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class MyStringToIntegerTest {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testSetInput() {
		MyStringToInteger mst = new MyStringToInteger();
		mst.setInput("214748367");
		//System.out.println(mst.getOutput());
	}

	@Test
	public void testGetOutput() {
		MyStringToInteger mst = new MyStringToInteger();
		mst.setInput("123456789");
		Assert.assertEquals(123456789, mst.getOutput());
		System.out.println(mst.getOutput());
	}
}
